package bingo.component.amchart.region;

import java.util.ArrayList;
import java.util.List;

import bingo.component.amchart.graphics.BaseGraphic;

/**
 * Jul 3, 2008 5:52:45 PM
 * Author:yangdongyu(yangdy@bingosoft.net)
 * ReadMe:
 * ChangeLog:
 */
public class Datas extends BaseGraphic {
	private String alias;
	
	public Datas(String alias) {
		this.alias = alias;
	}
	
	private List<Data> dataList = new ArrayList<Data>();
	
	public GraphicType getGraphicType() {
		return null;
	}

	public boolean isRootElement() {
		return false;
	}

	public List<Data> getDataList() {
		return dataList;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public void setDataList(List<Data> dataList) {
		this.dataList = dataList;
	}
	
	public Datas addData(Data data) {
		dataList.add(data);
		return this;
	}
	
	@Override
	public String getAlias() {
		return this.alias;
	}
}
